package com.aop.demo;

import com.aop.dao.UserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationContest.xml")
public class TestAopXml {
    @Resource(name = "userService")
    UserService userService;
    @Test
    public void fun01(){
        userService.sace(null);

    }
}
